package com.hl.qzzpbackend.model.dto.user;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;

/**
 * 编辑用户信息请求类
 * @author helong
 */
@Data
@ApiModel(value = "编辑用户信息请求类")
public class UserEditRequest implements Serializable {

    /**
     * 主键
     */
    @NotNull(message = "用户id不能为空")
    @Min(value = 1, message = "用户id不能小于1")
    @ApiModelProperty(value = "id")
    private Long id;


    /**
     * 昵称
     */
    @NotBlank(message = "昵称不能为空")
    @Size(min = 1, max = 10, message = "昵称长度在1-10之间")
    @ApiModelProperty(value = "昵称")
    private String nick;

}
